﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Clients;
/// <summary>
/// 操作写入命令
/// </summary>
[ProtoContract]
public class OperationWriteCommand : IClientCommand
{
    [ProtoMember(1)]
    public string Id { get; set; }
    /// <summary>
    /// 点位Id
    /// </summary>
    [ProtoMember(2)]
    public long TagId { get; set; }
    /// <summary>
    /// 值
    /// </summary>
    [ProtoMember(3)]
    public string Value { get; set; }
    /// <summary>
    /// 携带的数据（json)
    /// </summary>
    [ProtoMember(4)]
    public string Data { get; set; }
    /// <summary>
    /// 设备编号
    /// </summary>
    [ProtoMember(5)]
    public long EquipId { get; set; }
    /// <summary>
    /// 协议类型
    /// </summary>
    [ProtoMember(6)]
    public string ProtobufType { get; set; }
}
